<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="org.springframework.web.context.WebApplicationContext" %>
<%@ page import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ page import="com.lnkwe.config.BaseConfig" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../common/common.jsp" %>
<%
    WebApplicationContext wac= WebApplicationContextUtils.getWebApplicationContext(request.getServletContext());
    BaseConfig baseConfig = (BaseConfig)wac.getBean("baseConfig");
    request.setAttribute("baseConfig",baseConfig);
%>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta name='viewport' content='width=device-width, initial-scale=1'/>
    <link href="${path}/static/css/reset.css?v=1.0.0" rel="stylesheet">
    <link href="${path}/static/css/temporary.css" rel="stylesheet">
    <link href="${path}/static/css/bootstrap.min.css" rel="stylesheet">
    <link href="${path}/static/css/uploadify.css?v=1.0.0" rel="stylesheet">
    <script>
        var G_Path = {
            path: "${path}"
        };
    </script>
</head>
<body>
<div class="zp_dialog_content">
    <form id="mainForm" style="position: relative">
        <div class="zp_logo">
            <%--<c:if test="${model.logo==null or model.logo==''}">--%>
                <%--<img id="pic-image" name="logo" src="${path}/static/img/default.jpg"--%>
                     <%--alt="logo"/>--%>
            <%--</c:if>--%>
            <%--<c:if test="${model.logo!=null and model.logo!=''}">--%>
                <img id="pic-image" name="logo" src="${model.logo}"
                     alt="logo"/>
            <%--</c:if>--%>
        </div>
        <div class="zp_logo">
            <input type="file" name="file_upload" id="file_upload"/>
            <input type="hidden" name="logo" id="logo" value="${model.logo}"/>
        </div>
        <div class="zp_line">
            <input id="name" name="name" type="text" value="${model.name}" class="zp_text" placeholder="公司名称">
        </div>
        <div class="zp_line">
            <input id="job" name="job" type="hidden" value="${model.job}" class="zp_text"
            >
            <input id="jobName" name="jobName" placeholder="你的职位" type="text" value="${model.jobName}" class="zp_text"
            >
        </div>
        <div class="zp_line zp_bottom">
            <input type="text" class="zp_data" placeholder="起始时间" id="startTime" name="startTime">
            <input type="text" class="zp_data" placeholder="结束时间" id="endTime" name="endTime">
        </div>
    </form>
</div>
<script src="/static/js/jquery.min.js?v=2.1.4"></script>
<script src="/static/js/bootstrap.min.js?v=3.3.5"></script>
<script src="/static/js/content.min.js?v=1.0.0"></script>
<script src="/static/js/temporary.js"></script>
<script src="/static/js/plugins/dialog/dialog-min.js"></script>
<script src="/static/js/plugins/dialog/dialog-plus-min.js"></script>
<script src="/static/js/cateDialog.js"></script>
<script src="/static/js/plugins/upload/jquery.uploadify.min.js"></script>
<script src="/static/js/att.js"></script>
<script src="/static/js/admin/resumeAdd.js"></script>
<script type="text/javascript">
    var id = "${model.id}";
    var staticServer="${baseConfig.staticServer}";
    var from = mainForm;
    $("#jobName").click(function () {
        var d = dialog({
            id: "dialog",
            title: '选择职位类别',
            url: '/job/dialog',
            ok: function () {
                var iframeWin = this.iframeNode.contentWindow;
                from.job.value = iframeWin.selectId;
                from.jobName.value = iframeWin.selectName;
            },
            width: 520,
            height: 240
        }).show();
    });
    $(document).ready(function () {
        $("#file_upload").att({
            'scriptData': {
                'id': id,
            },
            'key': "resumeWorkExperience",
            'url': "logo"
        });
    })
</script>
</body>
</html>
